package com.liwbn.rbac.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.liwbn.rbac.model.RolePermission;
import com.liwbn.rbac.model.RolePermissionExample;

public interface RolePermissionMapper {
    int countByExample(RolePermissionExample example);

    int deleteByExample(RolePermissionExample example);

    int deleteByPrimaryKey(Long id);

    long insert(RolePermission record);

    int insertSelective(RolePermission record);

    int insertBatch(List<RolePermission> rps);

    List<RolePermission> selectByExample(RolePermissionExample example);

    RolePermission selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RolePermission record,
            @Param("example") RolePermissionExample example);

    int updateByExample(@Param("record") RolePermission record,
            @Param("example") RolePermissionExample example);

    int updateByPrimaryKeySelective(RolePermission record);

    int updateByPrimaryKey(RolePermission record);
}
